
    {literal}
        <style type="text/css">
            a.lien_feerique {
                height: 408px;
                left: 520px;
                top: 253px;
                position: absolute;
                width: 199px;
                z-index: 10;
            }
            a.lien_dynamique {
                height: 408px;
                left: 730px;
                position: absolute;
                width: 199px;
                z-index: 10;
                top: 253px;
            }
            a.lien_basique {
                height: 268px;
                position: absolute;
                left: 943px;
                position: absolute;
                width: 199px;
                z-index: 10;
                top: 253px;
            }
            p.titre{
                border-bottom: 1px solid #CDCDCD;
                color: #3F3F3F;
                display: block;
                font-size: 13px;
                font-weight: bold;
                margin: 0 0 14px;
                padding: 4px 0 7px 13px;
            }
            .gestion_titre{
                font: bold 16px Arial,Helvetica,sans-serif;
                margin-left:20px;
                text-transform: uppercase;
            }
        </style>
    {/literal}
<div id="main_container" class="search"> {$oZoneHeader}
  <div id="main">
    <div class="main_content"> {$oZoneTopMenu} 
    
    <!-- begin leftContent2-->
    <div id="leftContent4">
      <div id="essai_fiche">
        <h2 class="gestion_titre">
            Gérer les formules/options de l'annonce
        </h2>
        <div class="wrap7">
          <div class="block coordonnees">
            <div id="scrollFiche">
           <div id="contentFormule" style="width:664px; margin:0 auto; float:none;">
           {assign $linkPaiement = LINK_PAIEMENT_CB}
                <form action="{$linkPaiement}" method="post"  id="form-cb" name="form-cb" >
                                             <div class="modePay">
                                                <ul>
                                                   <li class="paiement-type" style ="list-style-type: none;">
                                                        <INPUT TYPE = hidden NAME = PBX_PAYBOX VALUE = 'https://preprod-tpeweb.paybox.com/cgi/MYchoix_pagepaiement.cgi'>
                                                        <INPUT TYPE = hidden NAME = PBX_BACKUP1 VALUE = 'https://preprod-tpeweb.paybox.com/cgi/MYchoix_pagepaiement.cgi'>
                                                        <INPUT TYPE = hidden NAME = PBX_BACKUP2 VALUE = 'https://preprod-tpeweb.paybox.com/cgi/MYchoix_pagepaiement.cgi'>
                                                        <INPUT TYPE = hidden NAME = PBX_MODE VALUE = '1'>
                                                        <INPUT TYPE = hidden NAME = PBX_SITE VALUE = '0765493'>
                                                        <INPUT TYPE = hidden NAME = PBX_RANG VALUE = '01'>
                                                        <INPUT TYPE = hidden NAME = PBX_IDENTIFIANT VALUE = '507127633'>
                                                        <INPUT TYPE = hidden NAME = PBX_TOTAL VALUE =""  id="montant" >
                                                        <INPUT TYPE = hidden NAME = PBX_DEVISE VALUE = '978'>
                                                        <INPUT TYPE = hidden NAME = PBX_CMD VALUE = "3">
                                                        <INPUT TYPE = hidden NAME = PBX_PORTEUR VALUE ="{$vendeur}">
                                                        <INPUT TYPE = hidden NAME = PBX_RETOUR VALUE = 'montant:M;ref:R;auto:A;trans:T;'>
                                                        <INPUT TYPE = hidden NAME = PBX_EFFECTUE VALUE = "{$urlRetourDefaut}">
                                                        <INPUT TYPE = hidden NAME = PBX_REFUSE VALUE = "{$pathregret}">
                                                        <INPUT TYPE = hidden NAME = PBX_ANNULE VALUE = "{$pathregret}">
                                                        <INPUT TYPE = hidden NAME = "tarif"  VALUE = "" id="tarif">
                                                        <INPUT TYPE = hidden NAME = "formule"  VALUE = "" id="formule">
                                                        <input type="hidden" id="urlRetour"  value="{jurl 'annonce~BoAnnonce:ajaxGetFormuleOptions'}" />
                                                        <input type="hidden" id="urlRetourDefaut"  value="{$urlRetourDefaut}" />
                                                    </li>
                                                </ul>
                                             </div>
                                    
               </form>
               <form id='form1' action="{jurl 'annonce~BoAnnonce:saveFormuleOptionsEdited'}" method="post" name="form1">
                <input type="hidden"  name="idOccasion" id="idOccasion" value="{$idOccasion}" />
                <input type="hidden" id="choix" name="choix" value="" />
                <input type="hidden" id="choix-form-deb" name="" value="{$formuleSelected->id}" />
                <input type="hidden" id="choix-form" name="choix-form" value="{$formuleSelected->id}" />
                <input type="hidden" id="prix-form"  name="prix-form" value="" />
                <input type="hidden" id="id-formule" name="id-formule" value="" />
                <input type="hidden" id="urlUpdate"  value="{jurl 'annonce~FoAnnonceGestion:ajaxGetChoicesOptionsByFormuleId'}" />
                
                <div id="detailOption" style="margin:0;padding:0;overflow-y: auto;overflow-x: hidden;">
                   <p class="titre">Détails des options de l'annonce</p>
                   <table width="100%" border="0" cellpadding="0" cellspacing="0">
                       <tr><td width="45%">Options de la formule</td><td width="45%">Options supplémentaires de l'annonce</td></tr>
                       <tr>
                           <td valign="top" id="recapFormule">
                               <ul>
                                    {foreach $recapAnnonceFormule as $key=>$itemRecap}
                                        <li>{$itemRecap->lib_option_formule} : {$itemRecap->formch_libelle}</li>
                                    {/foreach}
                                </ul>
                           </td>
                           <td valign="top" id="recapAnnonce">
                               <ul>
                                    {foreach $recapAnnonceChoix as $key=>$itemRecap}
                                        <li>{$itemRecap->lib_option_formule} : {$itemRecap->formch_libelle}</li>
                                    {/foreach}
                                </ul>
                           </td>
                       </tr>
                   </table>
                       
                </div>
                
                <div id="formule">
                   <p class="titre">Les formules</p>
                        <div class="" style="margin-top:-20px;">
                            {foreach $formule as $k=>$itemFormule}
                                <input type="hidden" name="formule{$k}" value="{$itemFormule->id}" class="my-form"/>
                                <input type="hidden" class="selectionne" value="{if ($formuleSelected->id == $itemFormule->id)}1{else}0{/if}" />
                                <input type="hidden" class="a_griser" value="{if ($formuleSelected->prix > $itemFormule->prix)}1{else}0{/if}" />
                                {if $formuleSelected->prix < $itemFormule->prix}
                                    {$itemFormule->content}
                                {/if}
                            {/foreach}
                        </div>
                    <p id="error" style="color:red;display:none;"></p>
                </div>
                {if sizeof($optPrixSup->listeLibOption)}
                    {assign $display = '1'}
                {else}
                    {assign $display = '0'}
                {/if}
                <div id="options" style="clear:both;{if $display}display:block;{else}display:none;{/if}" >
                    <p class="titre">Les options</p>
                    <br />
                    <table id="tableOptions">
                    {foreach $optPrixSup->listeLibOption as $key => $val}
                      <tr>
                        <td  class="td_right"><label>{$val} : </label></td>
                        <td>
                            {if sizeof($optPrixSup->listeChoix)}
                            <select id="parution_{$key}"  class="select_choix"  onchange="miditra(this.value);">
                                <option value="">Sélectionner</option>
                                {foreach $optPrixSup->listeChoix as $key2 => $valChoix}
                                    {if $val == $valChoix->lib_option_formule}
                                    <option  optionPrix ="{$valChoix->formch_prix}" value="{$valChoix->formch_id}" 
                                            {if (isset($tabChoixSelected) && (in_array($valChoix->formch_id,$tabChoixSelected)))} selected {/if}>
                                    {$valChoix->formch_libelle|escxml} {if $valChoix->formch_prix}/ {$valChoix->formch_prix}€ {/if}{if $valChoix->formch_duree}/ {$valChoix->formch_duree} {/if}
                                    </option>
                                    {/if}
                                {/foreach}
                            </select>
                            {/if}
                        </td>
                      </tr>
                      {/foreach}
                      </table>
                </div> 
                 {if sizeof($optPrixSup->listePaiement)}
                    {assign $displayP = '1'}
                {else}
                    {assign $displayP = '0'}
                {/if}
                <div id="typepayement" style="clear:both;position: relative;margin-top:100px;{if $displayP}display:block;{else}display:none;{/if}">
                    <p class="titre" style="margin-bottom:20px;">Choix des paiements</p>
                    <label>Type de paiement : </label>
                    <select name="typePayement" id="selectPaiement">
                    {foreach $optPrixSup->listePaiement as $key=>$item}
                             <option value="{$item->id}" {if (isset($typePayement) && ($typePayement == $item->id))} selected {/if}>{$item->paiement}</option>    
                    {/foreach}
                    </select>
                </div>    
                <br />
                <div id="reglement" style="clear:both;position:relative;top:47px;{if $displayP}display:none;{else}display:block;{/if}">
                    <p class="titre" style="margin-bottom:20px;">Choix du règlement</p>
                    <label>&nbsp; </label>
                    <select name="typepayement" id="reglement">
                    {foreach $reglement as $key=>$item}
                             <option value="{$item->id}">{$item->paiement}</option>    
                    {/foreach}
                    </select>
                </div>    
                    <div style="clear:both">&nbsp;</div>
         </form>
                        
                <dl style="text-align:center; margin-top:50px;height:100px;">
                       <input type="image" title="Enregistrer" id='valid-form' onClick="return verifierForm()" src="{$j_basepath}design/front/images/btn_enregistrer.png">
                </dl>

    </div><!--end leftContent2-->
    <div id="rightContent" class="annVisus" style="width:302px; overflow:visible !important; height:auto !important;">
    
     
    </div>
    <div class="clear">&nbsp;</div>
    </div><!--end scrollFiche-->
          </div>
        </div>
        <div class="deco7">&nbsp;</div>
      </div>
    </div>
    <!-- end leftContent2-->
    
    <div class="clear">&nbsp;</div>
  </div>
</div>
</div>

{literal}
<style type="text/css">
   .leftItem1 .options {
        display: block;
        width:200px;
    }
    .leftItem1{
       width:267px;
    }
    #la_feerique, #la_dynamique, #la_basique {
        left: 11px;
        position: relative;
        top: 48px;
    }
    #options{
        position: relative;
        top: 50px;
    }
    .select_choix{
        width:160px;
    }
    .td_right{
        text-align:right;
    }
    .submit{
        margin: 100px 0 0 150px;
    }
</style>
{/literal}
    